package user;

import cars.Factory;
import operation.IOperation;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mac
 * Date: 2022-11-28
 * Time: 11:10
 */
public abstract class User {
    public int UserID;
    public String UserName;
    public String UserPwd;

    public IOperation[] iOperations;

    public User(String userName) {
        UserName = userName;
    }

    public abstract int menu();
    public void doWork(int choice, Factory factory){
        iOperations[choice].work(factory);
    }
}
